package com.sltx.controller;

import com.sltx.util.AccessLimit;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/redis")
@ResponseBody
public class Redistest {

    @AccessLimit(second = 10,maxRequestCount = 3,forbiddenTime = 10)
    @RequestMapping(value = "/testredis", method = RequestMethod.GET)
    public Object testredis(){
        return "ok";
    }

}
